package com.xkdx.guangguang.fragment.shopinfo;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.guangguang.module.network.AbsAction;

public class ShopInfoNewsAction extends AbsAction {

	String shopID, newInfoRefreshTime, pageIndex;

	public ShopInfoNewsAction(String shopID, String newInfoRefreshTime, String pageIndex) {
		this.shopID = shopID;
		this.newInfoRefreshTime = newInfoRefreshTime;
		this.pageIndex = pageIndex;
	}

	@Override
	public void constructRequest() {
		// 优惠信息
		HashMap<String, String> newInfomap = new HashMap<String, String>();
		newInfomap.put("DeviceID", "2");
		newInfomap.put("ShopID", shopID);
		newInfomap.put("InfoType", "1|2");
		newInfomap.put("PageIndex", pageIndex);
		newInfomap.put("PageSize", "30");
		newInfomap.put("RefreshTime", newInfoRefreshTime);
		String newInfoJson = constructJson(newInfomap);
		Parameter newInfoparameter = new Parameter("informationInterface", "getInfoListByShop", newInfoJson);
		List<Parameter> list = new ArrayList<AbsAction.Parameter>();
		list.add(newInfoparameter);
		requestData = constructMod(list);

	}

}
